const request=require('request');

request.post('http://localhost:5000',{form:{root:{"children":[{"children":[{"children":[{"children":[{"children":[{"children":[],"id":"e"},{"children":[],"id":"f"}],"id":"d"}],"id":"c"}],"id":"b"},{"children":[],"id":"g"},{"children":[],"id":"h"}],"id":"a"}],"id":"root"}}},(err,res,body)=>{
    if(err)throw err;
    console.log('body:',body);
});